package com.akuma.redmine.service;

import com.akuma.redmine.entity.ProjectQuery;
import com.akuma.redmine.entity.ProjectView;
import com.akuma.redmine.entity.ProjectsQuery;
import com.akuma.redmine.exception.RedMineException;

import java.util.List;

/**
 * Created by akuma on 2016/10/12.
 *
 * @author akuma
 */
public interface IProjectService {
    ProjectsQuery findAll() throws RedMineException;

    List<ProjectQuery> getTreeProjects() throws RedMineException;

    ProjectQuery get(Long id) throws RedMineException;

    Integer create(ProjectView project) throws RedMineException;

    Integer update(ProjectQuery project) throws RedMineException;

    void delete(Long id) throws RedMineException;
}
